package com.github.baichuan.application.scaffold.rest.dto.app;

import com.github.baichuan.application.scaffold.rest.domain.app.UpgradeMode;
import com.github.baichuan.mapping.Mapping;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

@Schema(title = "版本升级信息")
@Getter
public class UpgradeVersion {

    @Schema(title = "版本号")
    @Mapping
    private String version;

    @Schema(title = "升级方式")
    @Mapping
    private UpgradeMode upgradeMode;

    @Schema(title = "升级介绍")
    @Mapping
    private String intro;

    @Schema(title = "下载地址")
    @Mapping(value = "file", format = "/app/%s")
    private String downloadUrl;
}
